+vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium
+
+ * Team upload.
+ * Cherry-pick patch from upstream to fix FTBFS with gcc-13.
+ (Closes: #1037887)
+
+ -- Michael R. Crusoe <crusoe@debian.org> Tue, 22 Aug 2023 00:27:20 +0200
+
vtk9 (9.1.0+really9.1.0+dfsg2-6) unstable; urgency=medium
* Team upload.
Description: _matplotlib
-Index: VTK-9.1.0/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
-===================================================================
---- VTK-9.1.0.orig/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
-+++ VTK-9.1.0/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
-@@ -197,6 +197,10 @@ private:
+--- vtk9.orig/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
++++ vtk9/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
+@@ -197,6 +197,10 @@
* to implement IsAvailable.
*/
static Availability CheckMPLAvailability();
Bug-Debian: https://bugs.debian.org/1012703
Last-Update: 2022-06-19
---- vtk9-9.1.0+really9.1.0+dfsg2.orig/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
-+++ vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
-@@ -1770,7 +1770,7 @@ void ex__compress_variable(int exoid, in
+--- vtk9.orig/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
++++ vtk9/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
+@@ -1770,7 +1770,7 @@
*/
/* const int NC_SZIP_EC = 4; */ /* Selects entropy coding method for szip. */
Therefore, when no gradient opacity TF is given, no argument is expected
and none is given.
-diff --git a/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx b/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx
-index cdcec460ef..dfc65de04b 100644
---- a/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx
-+++ b/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx
-@@ -2415,7 +2415,8 @@ void vtkOpenGLGPUVolumeRayCastMapper::ReplaceShaderCompute(
+--- vtk9.orig/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx
++++ vtk9/Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx
+@@ -2415,7 +2415,8 @@
vtkvolume::ComputeGradientOpacityMulti1DDecl(this->AssembledInputs));
vtkShaderProgram::Substitute(fragmentShader, "//VTK::ComputeColor::Dec",
vtkShaderProgram::Substitute(fragmentShader, "//VTK::ComputeLighting::Dec",
vtkvolume::ComputeLightingMultiDeclaration(ren, this, vol, numComps, independentComponents,
-@@ -2970,6 +2971,23 @@ bool vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::UpdateInputs(vtkRenderer* ren
+@@ -2970,6 +2971,23 @@
this->ForceTransferInit();
}
return success;
}
-@@ -3106,7 +3124,10 @@ void vtkOpenGLGPUVolumeRayCastMapper::GPURender(vtkRenderer* ren, vtkVolume* vol
+@@ -3106,7 +3124,10 @@
this->Impl->MultiVolume = multiVol && this->GetInputCount() > 1 ? multiVol : nullptr;
this->Impl->ClearRemovedInputs(renWin);
this->Impl->UpdateSamplingDistance(ren);
this->Impl->UpdateTransfer2DYAxisArray(ren, vol);
this->Impl->UpdateTransferFunctions(ren);
-diff --git a/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h b/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
-index 766f36ab63..3406bfb431 100644
---- a/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
-+++ b/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
-@@ -1054,10 +1054,24 @@ std::string ComputeLightingMultiDeclaration(vtkRenderer* vtkNotUsed(ren), vtkVol
+--- vtk9.orig/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
++++ vtk9/Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h
+@@ -1054,10 +1054,24 @@
int lightingComplexity)
{
vtkVolumeProperty* volProperty = vol->GetProperty();
// Shading for composite blending only
int const shadeReqd = volProperty->GetShade() &&
-@@ -1243,7 +1257,8 @@ std::string ComputeColorDeclaration(vtkRenderer* vtkNotUsed(ren),
+@@ -1243,7 +1257,8 @@
}
//--------------------------------------------------------------------------
{
std::ostringstream ss;
int i = 0;
-@@ -1274,13 +1289,28 @@ std::string ComputeColorMultiDeclaration(vtkOpenGLGPUVolumeRayCastMapper::Volume
+@@ -1274,13 +1289,28 @@
}
else
{
}
return ss.str();
-@@ -1828,14 +1858,18 @@ std::string ShadingMultipleInputs(
+@@ -1828,14 +1858,18 @@
if (property->GetTransferFunctionMode() == vtkVolumeProperty::TF_1D)
{
Description: Do not try linking with -lsocket
-Index: VTK-9.0.1/Common/System/vtkTestSocketFeatures.cmake
-===================================================================
---- VTK-9.0.1.orig/Common/System/vtkTestSocketFeatures.cmake
-+++ VTK-9.0.1/Common/System/vtkTestSocketFeatures.cmake
-@@ -6,9 +6,6 @@ check_library_exists("socket" getsocknam
+--- vtk9.orig/Common/System/vtkTestSocketFeatures.cmake
++++ vtk9/Common/System/vtkTestSocketFeatures.cmake
+@@ -6,9 +6,6 @@
if(NOT DEFINED VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)
set(VTK_GETSOCKNAME_LIBS)
Description: Drop medical examples
Last-Update: 2020-10-21
---- vtk9-9.0.1+dfsg1.orig/Examples/CMakeLists.txt
-+++ vtk9-9.0.1+dfsg1/Examples/CMakeLists.txt
-@@ -55,7 +55,7 @@ else ()
+--- vtk9.orig/Examples/CMakeLists.txt
++++ vtk9/Examples/CMakeLists.txt
+@@ -56,7 +56,7 @@
add_example(IO/Cxx)
add_example(ImageProcessing/Cxx)
add_example(Infovis/Cxx)
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2020-11-05
-Index: vtk9-9.0.1+dfsg1/Wrapping/Python/CMakeLists.txt
-===================================================================
---- vtk9-9.0.1+dfsg1.orig/Wrapping/Python/CMakeLists.txt
-+++ vtk9-9.0.1+dfsg1/Wrapping/Python/CMakeLists.txt
-@@ -23,21 +23,21 @@ endif ()
+--- vtk9.orig/Wrapping/Python/CMakeLists.txt
++++ vtk9/Wrapping/Python/CMakeLists.txt
+@@ -23,21 +23,21 @@
# The interpreters are not supported in wheel builds, so skip them.
if (NOT VTK_WHEEL_BUILD)
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2020-11-06
-Index: vtk9-9.0.1+dfsg1/CMake/vtkModuleWrapPython.cmake
-===================================================================
---- vtk9-9.0.1+dfsg1.orig/CMake/vtkModuleWrapPython.cmake
-+++ vtk9-9.0.1+dfsg1/CMake/vtkModuleWrapPython.cmake
-@@ -84,7 +84,7 @@ function (vtk_module_python_default_dest
+--- vtk9.orig/CMake/vtkModuleWrapPython.cmake
++++ vtk9/CMake/vtkModuleWrapPython.cmake
+@@ -87,7 +87,7 @@
"for Python modules.")
set(_vtk_python_version_suffix)
endif ()
endif ()
set("${var}" "${destination}" PARENT_SCOPE)
-Index: vtk9-9.0.1+dfsg1/Utilities/Python/CMakeLists.txt
-===================================================================
---- vtk9-9.0.1+dfsg1.orig/Utilities/Python/CMakeLists.txt
-+++ vtk9-9.0.1+dfsg1/Utilities/Python/CMakeLists.txt
-@@ -77,7 +77,7 @@ if (NOT VTK_PYTHON_SITE_PACKAGES_SUFFIX)
+--- vtk9.orig/Utilities/Python/CMakeLists.txt
++++ vtk9/Utilities/Python/CMakeLists.txt
+@@ -85,7 +85,7 @@
set(VTK_PYTHON_SITE_PACKAGES_SUFFIX "Lib/site-packages")
else ()
set(VTK_PYTHON_SITE_PACKAGES_SUFFIX
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2020-11-08
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_class2example.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_class2example.pl
+--- vtk9.orig/Utilities/Doxygen/doc_class2example.pl
++++ vtk9/Utilities/Doxygen/doc_class2example.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Time-stamp: <2004-06-09 11:12:38 barre>
#
# Build cross-references between classes and examples
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_cleanhtml.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_cleanhtml.pl
+--- vtk9.orig/Utilities/Doxygen/doc_cleanhtml.pl
++++ vtk9/Utilities/Doxygen/doc_cleanhtml.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Time-stamp: <2002-10-25 20:17:59 barre>
#
# Clean the HTML generated by Doxygen to remove some layout quicks
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_codematch.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_codematch.pl
+--- vtk9.orig/Utilities/Doxygen/doc_codematch.pl
++++ vtk9/Utilities/Doxygen/doc_codematch.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Time-stamp: <2002-01-18 16:17:26 barre>
#
# Summary ?
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_index.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_index.pl
+--- vtk9.orig/Utilities/Doxygen/doc_index.pl
++++ vtk9/Utilities/Doxygen/doc_index.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Time-stamp: <2001-11-21 17:40:48 barre>
#
# Build full-text index
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_rmpath.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_rmpath.pl
+--- vtk9.orig/Utilities/Doxygen/doc_rmpath.pl
++++ vtk9/Utilities/Doxygen/doc_rmpath.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Time-stamp: <2001-10-05 11:49:40 barre>
#
# Remove path to intermediate Doxygen dir from html doc
---- vtk9-9.0.1+dfsg1.orig/Utilities/Doxygen/doc_version.pl
-+++ vtk9-9.0.1+dfsg1/Utilities/Doxygen/doc_version.pl
+--- vtk9.orig/Utilities/Doxygen/doc_version.pl
++++ vtk9/Utilities/Doxygen/doc_version.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
GUISupport/Qt/QVTKOpenGLWindow.cxx | 5 +++++
1 file changed, 5 insertions(+)
-diff --git a/GUISupport/Qt/QVTKOpenGLWindow.cxx b/GUISupport/Qt/QVTKOpenGLWindow.cxx
-index 3bddc19809..79d5c2b653 100644
---- a/GUISupport/Qt/QVTKOpenGLWindow.cxx
-+++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx
-@@ -35,6 +35,11 @@
+--- vtk9.orig/GUISupport/Qt/QVTKOpenGLWindow.cxx
++++ vtk9/GUISupport/Qt/QVTKOpenGLWindow.cxx
+@@ -34,6 +34,11 @@
#include "vtkObjectFactory.h"
#include "vtkOpenGLState.h"
QVTKOpenGLWindow::QVTKOpenGLWindow(QOpenGLWindow::UpdateBehavior ub, QWindow* p)
: QVTKOpenGLWindow(vtkSmartPointer<vtkGenericOpenGLRenderWindow>::New(), nullptr, ub, p)
{
---
-2.20.1
-
Fixes building for Qt with OpenGL ES.
Author: Adrian Bunk <bunk@debian.org>
---- vtk9-9.1.0+dfsg2.orig/GUISupport/Qt/vtkQWidgetTexture.cxx
-+++ vtk9-9.1.0+dfsg2/GUISupport/Qt/vtkQWidgetTexture.cxx
+--- vtk9.orig/GUISupport/Qt/vtkQWidgetTexture.cxx
++++ vtk9/GUISupport/Qt/vtkQWidgetTexture.cxx
@@ -18,7 +18,7 @@
#include "vtkOpenGLResourceFreeCallback.h"
#include "vtkOpenGLState.h"
#include <QGraphicsProxyWidget>
#include <QGraphicsScene>
-@@ -98,7 +98,7 @@ vtkQWidgetTexture::vtkQWidgetTexture()
+@@ -98,7 +98,7 @@
}
this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer);
include/diy/time.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
-diff --git a/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp b/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp
-index 692cf36..671e69d 100644
---- a/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp
-+++ b/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp
-@@ -3,11 +3,11 @@
+--- vtk9.orig/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp
++++ vtk9/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/time.hpp
+@@ -3,10 +3,10 @@
#ifndef _WIN32
#include <sys/time.h>
#endif // ifndef _WIN32
namespace diy
- {
-@@ -16,7 +16,7 @@ typedef unsigned long time_type;
+@@ -16,7 +16,7 @@
inline time_type get_time()
{
clock_serv_t cclock;
mach_timespec_t ts;
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
---
-GitLab
Utilities/Doxygen/doc_class2example.pl | 1 +
1 file changed, 1 insertion(+)
-diff --git a/Utilities/Doxygen/doc_class2example.pl b/Utilities/Doxygen/doc_class2example.pl
-index 3978563..ce8aeca 100755
---- a/Utilities/Doxygen/doc_class2example.pl
-+++ b/Utilities/Doxygen/doc_class2example.pl
-@@ -261,6 +261,7 @@ if (exists $args{"parser"}) {
+--- vtk9.orig/Utilities/Doxygen/doc_class2example.pl
++++ vtk9/Utilities/Doxygen/doc_class2example.pl
+@@ -261,6 +261,7 @@
} else {
@parsers = keys %parsers;
}
my $os_is_win = ($^O =~ m/(MSWin32|Cygwin)/i);
my $open_file_as_text = $os_is_win ? O_TEXT : 0;
---
-2.29.2
-
-
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2021-09-17
---- vtk9-9.0.3+dfsg1.orig/Parallel/MPI4Py/vtk.module
-+++ vtk9-9.0.3+dfsg1/Parallel/MPI4Py/vtk.module
-@@ -12,4 +12,3 @@ DEPENDS
+--- vtk9.orig/Parallel/MPI4Py/vtk.module
++++ vtk9/Parallel/MPI4Py/vtk.module
+@@ -12,4 +12,3 @@
PRIVATE_DEPENDS
VTK::ParallelMPI
VTK::mpi
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2021-11-14
---- vtk9-9.1.0+dfsg1.orig/CMake/vtkCompilerExtraFlags.cmake
-+++ vtk9-9.1.0+dfsg1/CMake/vtkCompilerExtraFlags.cmake
-@@ -3,7 +3,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
+--- vtk9.orig/CMake/vtkCompilerExtraFlags.cmake
++++ vtk9/CMake/vtkCompilerExtraFlags.cmake
+@@ -3,7 +3,7 @@
include(CheckCXXCompilerFlag)
# Additional warnings for GCC
--- /dev/null
+From 1233ceec268d5366c66f5e79786ec784042b591b Mon Sep 17 00:00:00 2001
+From: Laurent Rineau <laurent.rineau@cgal.org>
+Date: Tue, 17 Jan 2023 16:18:53 +0100
+Subject: Add #include <cstdint> to compile with gcc13
+Origin: upstream, https://gitlab.kitware.com/vtk/vtk/-/commit/1233ceec268d5366c66f5e79786ec784042b591b
+
+The `vtkSEPReader` was introduced by MRs !4909 (from my former
+collaborator Maxime) and !4938. Then it was highly modified by
+!7516. The later MR is the one that introduced the uses of
+`std::uint8_t` and `std::uint32_t`.
+
+Those types needs the inclusion of `<cstdint>`.
+---
+ IO/Image/vtkSEPReader.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- vtk9.orig/IO/Image/vtkSEPReader.h
++++ vtk9/IO/Image/vtkSEPReader.h
+@@ -25,8 +25,9 @@
+ #include "vtkImageAlgorithm.h"
+ #include "vtkNew.h" // for ivars
+
+-#include <array> // for std::array
+-#include <string> // for std::string
++#include <array> // for std::array
++#include <cstdint> // for std::uint8_t and std::uint32_t
++#include <string> // for std::string
+
+ namespace details
+ {
+gcc-13.patch
10_matplotlib.patch
20_do_not_link_against_socket.patch
30_drop_medical_example.patch